package com.hzit.rabbitmq.test;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RabbitListener(queues = "xyj")
@Component
public class RabbitMqListener07 {

	//1. 接收分裂模式发来的消息
	@RabbitHandler
	public void getMessage(String msg){
		System.out.println("【西游记】接收到消息：" + msg);
	}
}
